"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const useDataType = (data, type) => {
  const t = Object.prototype.toString.call(data).split(" ");
  const t1 = t[1].split("]");
  const t2 = t1[0].toLowerCase();
  if (type) {
    return t2 === type;
  }
  return t1[0].toLowerCase();
};
exports.default = useDataType;
